﻿using System;
using System.Web.UI;
using RaceList.activity.help;
using RaceList.activity.util;

namespace RaceList.activity.mhalloween
{
    /// <summary>
    ///     这个页面的神奇之处在于，你不给参数我显示的总排行，你给参数我显示的个人排行
    /// </summary>
    public partial class Paihangbang : Page
    {
        public int UserId { get; set; }

        public string HeadUrl { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                bool flag = RelayQuery.ExistUser(Convert.ToInt32(Request[Parameters.userId]));

                if (flag)
                {
                    UserId = Convert.ToInt32(Request[Parameters.userId]);
                    var weixinUser = RelayQuery.GetWeixinUser(UserId);
                    if (weixinUser != null)
                        HeadUrl = weixinUser.Headimgurl;
                }
            }


        }
    }
}